package ru.weather.common;


import java.util.*;
/**
 * Класс с данными
 */
public class Data {
    public static final String KEY_API = "ded19fc3064446239b6212811242504";
    public static final String BASE_URL = "http://api.weatherapi.com/v1";

    public static Map<String,String> ParisMap() {
        Map<String, String> listForParis = new HashMap<>();

        listForParis.put("name", "Paris");
        listForParis.put("region", "Ile-de-France");
        listForParis.put("country", "France");
        listForParis.put("lat", "48.87");
        listForParis.put("lon", "2.33");
        listForParis.put("tz_id", "Europe/Paris");

        return listForParis;
    }

    public static Map<String,String> LondonMap() {
        Map<String, String> listForLondon = new HashMap<>();

        listForLondon.put("name", "London");
        listForLondon.put("region", "City of London, Greater London");
        listForLondon.put("country", "United Kingdom");
        listForLondon.put("lat", "51.52");
        listForLondon.put("lon", "-0.11");
        listForLondon.put("tz_id", "Europe/London");

        return listForLondon;
    }

    public static Map<String,String> MoscowMap() {
        Map<String, String> listForMoscow = new HashMap<>();

        listForMoscow.put("name", "Moscow");
        listForMoscow.put("region", "Moscow City");
        listForMoscow.put("country", "Russia");
        listForMoscow.put("lat", "55.75");
        listForMoscow.put("lon", "37.62");
        listForMoscow.put("tz_id", "Europe/Moscow");

        return listForMoscow;
    }

    public static Map<String,String> NovosibirskMap() {
        Map<String, String> listForNsk = new HashMap<>();

        listForNsk.put("name", "Novosibirsk");
        listForNsk.put("region", "Novosibirsk");
        listForNsk.put("country", "Russia");
        listForNsk.put("lat", "55.04");
        listForNsk.put("lon", "82.93");
        listForNsk.put("tz_id", "Asia/Novosibirsk");

        return listForNsk;
    }

    public static Map<String,Map<String,String>> MapInit(){
        Map<String,Map<String,String>> mapOfMap = new HashMap<>();
        mapOfMap.put("Novosibirsk", NovosibirskMap());
        mapOfMap.put("Moscow", MoscowMap());
        mapOfMap.put("London", LondonMap());
        mapOfMap.put("Paris", ParisMap());
        return mapOfMap;
    }
}
